
::-webkit-scrollbar {
    width: 5px;
    border-radius: 8px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
    /*rgba(255,255,255, 0.1)*/
    background: red;
    display: none;
}

/* 滑块 */
::-webkit-scrollbar-thumb {
    background-color: rgba(144, 147, 153, .0);
    background-clip: padding-box;
    min-height: 28px;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
    transition: background-color .3s;
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(144, 147, 153, .8);
}

* {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hidden {
    display: none;
}

.container {
    display: flex;
    width: 80%;
    height: 100vh;
    flex-direction: column;
    margin: auto;
}

.header {
    height: 55px;
    margin-bottom: 5px;
    background-color: #F5F5F5;
}

.main {
    display: flex;
    justify-content: space-between;
    height: calc(100vh - 120px);
}

.footer {
    height: 50px;
    margin-top: 5px;
    background-color: saddlebrown;
}

.main .slider {
    width: 25%;
    height: calc(100vh - 120px);
    background: #F5F5F5;
    overflow-y: auto;
}

.main .content {
    width: 75%;
    padding-left: 5px;
}

.chat-list > .chat-item {
    width: 95%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px 10px;
    position: relative;
}

.chat-list > .chat-item > .dot {
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    position: absolute;
    top: 0px;
    z-index: 11;
}

.chat-item:hover {
    background-color: #ffffff;
}

.chat-list > .chat-item > .userinfo {
    width: 80%;
}

.chat-list > .chat-item > .userinfo > .username {
    display: block;
    width: 100%;
}

.chat-list > .chat-item > .userinfo > .username > .text {
    float: left;
    width: 35%;
}


.chat-list > .chat-item > .userinfo > .username > .time {
    float: right;
    width: 35%;
    color: #B9B9B9;
    text-align: right;
    font-size: 12px;
}

.chat-list > .chat-item > .userinfo > .message {
    width: 100%;
    margin-top: 8px;
    display: inline-block;
    color: #B9B9B9;
}

.content > .message {
    width: 100%;
    height: 80%;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #F5F5F5;
}

.content > .message > .message-list > .message-item {
    width: calc(100% - 20px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 10px;
}

.content > .message > .message-list > .message-item > .message-area {
    width: calc(100% - 75px);
}

.content > .message > .message-list > .message-item > .message-area > .user-message {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}

.content > .message > .message-list > .message-item > .message-area > .user-message > .username {
    width: 35%;
    color: #b1b1b1;
    font-size: 12px;
}

.content > .message > .message-list > .message-item > .message-area > .user-message > .time {
    width: 35%;
    color: #000000;
    text-align: right;
}

.content > .message > .message-list > .message-item > .message-area > .message-content {
    margin-top: 8px;
    display: inline-flex;
    background-color: #ffffff;
    padding: 6px;
    border-radius: 5px;
    line-height: normal;
    align-items: center;
}

.content > .message > .message-list > .message-item > .message-area > .image {
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
}

.content > .message > .message-list > .message-item > .message-area > .message-content img {
    max-width: 200px;
}

.content > .message > .message-list > .message-item > .message-area > .message-content a {
    text-decoration: none;
    color: #000000;
}

.content > .message > .message-list > .message-item > .message-area > .message-content .filearea {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 200px;
}

.content > .message > .message-list > .message-item > .message-area > .message-content .filearea .file {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.content > .message > .message-list > .message-item > .message-area > .message-content .filearea .file .filename {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    max-height: 25px;
    margin-bottom: 5px;
    font-size: 12px;
}

.content > .message > .message-list > .message-item > .message-area > .message-content .filearea .file .filesize {
    font-size: 12px;
}


.content > .message > .message-list > .self-message {
    flex-flow: row-reverse !important;
}

.content > .message > .message-list > .message-item > .self-message > .image {
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
}

.content > .message > .message-list > .self-message .user-message {
    flex-flow: row-reverse !important;
}

.content > .message > .message-list > .self-message .message-area {
    text-align: right;
}

.content > .message > .message-list > .self-message > .message-area > .user-message > .time {
    text-align: left;
}

.content > .message > .message-list > .self-message > .message-area > .message-content {
    background-color: #9EEA6A;
}

.content > .message > .message-list > .self-message > .message-area > .file {
    background-color: #ffffff !important;
}


.content > .message > .message-list > .self-message > .message-area > .message-content .filearea {
    flex-direction: row;
}

.content > .input-message {
    width: 100%;
    height: calc(20% - 5px);
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}

.content > .input-message > .tools {
    width: 100%;
    height: 35px;
    background-color: #B9B9B9;
    display: flex;
    flex-direction: row;
}

.content > .input-message > .textarea {
    width: 100%;
    height: calc(100% - 70px);
    overflow: auto;
}

.content > .input-message > .textarea .msg-content {
    width: 100%;
    height: 100%;
    border: 0;
    background-color: transparent;
    overflow-y: auto;
    overflow-x: auto;
    color: #000000;
    outline: none;
}

.content > .input-message > .textarea textarea:focus-visible {
    outline: none;
}

.content > .input-message > .button {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.content > .input-message > .button > .send {
    height: 90%;
    width: 80px;
    float: right;
    background-color: #F5F5F5;
    text-decoration: none;
    color: #000000;
    display: block;
    text-align: center;
    line-height: 32px;
    margin-right: 25px;
}

.content > .input-message > .button > .send:hover {
    background-color: darkgreen;
    color: #eeeeee;
}

.content > .input-message > .tools ul {
    width: 100%;
    height: 35px;
    display: inline-block;
    padding: 5px;
}

.content > .input-message > .tools ul > li {
    float: left;
    margin-right: 15px;
}

/**
表情
 */
.face {
    width: 45%;
    display: flex;
    z-index: 11;
    position: fixed;
    flex-wrap: wrap;
    padding: 2px;
    background: #ffffff;
    border-radius: 5px;
}

.face .face-item {
    width: 25px;
    padding: 2px;
}
.face .face-item:hover {
    background: rgba(218,218,218,0.5);
    border-radius: 5px;
}
.face .face-item img{
    width: 100%;
}

/**
* 音频播放器
**/
